local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1
L0_1 = {}
L0_1.group_id = 234402012
L1_1 = {}
L2_1 = {}
L2_1.config_id = 12001
L2_1.monster_id = 21010901
L3_1 = {}
L3_1.x = 9.315
L3_1.y = 0.028
L3_1.z = -4.584
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 299.025
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L3_1 = {}
L3_1.config_id = 12002
L3_1.monster_id = 21010901
L4_1 = {}
L4_1.x = 10.693
L4_1.y = 0.028
L4_1.z = -1.312
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 275.467
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 12003
L4_1.monster_id = 21010601
L5_1 = {}
L5_1.x = 5.144
L5_1.y = -0.046
L5_1.z = -9.888
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 331.13
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L5_1.config_id = 12004
L5_1.monster_id = 21010301
L6_1 = {}
L6_1.x = 10.631
L6_1.y = 0.028
L6_1.z = 2.788
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 259.511
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L6_1.config_id = 12005
L6_1.monster_id = 21010601
L7_1 = {}
L7_1.x = -4.695
L7_1.y = -0.046
L7_1.z = -9.917
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 22.35
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L7_1.config_id = 12006
L7_1.monster_id = 21010301
L8_1 = {}
L8_1.x = 8.785
L8_1.y = 0.028
L8_1.z = 5.461
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 248.814
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L8_1.config_id = 12007
L8_1.monster_id = 21020201
L9_1 = {}
L9_1.x = 0.368
L9_1.y = -0.046
L9_1.z = -12.041
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L9_1.config_id = 12009
L9_1.monster_id = 21020101
L10_1 = {}
L10_1.x = 6.232
L10_1.y = 0.028
L10_1.z = 8.063
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 211.207
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L10_1.config_id = 12011
L10_1.monster_id = 21030101
L11_1 = {}
L11_1.x = -9.369
L11_1.y = 0.028
L11_1.z = -5.048
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 63.948
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L11_1.config_id = 12012
L11_1.monster_id = 21010501
L12_1 = {}
L12_1.x = -10.246
L12_1.y = 0.028
L12_1.z = -1.019
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 80.435
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L12_1.config_id = 12013
L12_1.monster_id = 21011001
L13_1 = {}
L13_1.x = 7.666
L13_1.y = 0.028
L13_1.z = -7.428
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 314.412
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 12014
L13_1.monster_id = 21011001
L14_1 = {}
L14_1.x = -7.248
L14_1.y = 0.028
L14_1.z = -7.306
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 48.285
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L14_1 = {}
L14_1.config_id = 12018
L14_1.monster_id = 21010501
L15_1 = {}
L15_1.x = -9.613
L15_1.y = 0.028
L15_1.z = 4.076
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 106.274
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L15_1 = {}
L15_1.config_id = 12019
L15_1.monster_id = 21030101
L16_1 = {}
L16_1.x = -7.258
L16_1.y = 0.028
L16_1.z = 7.112
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 137.088
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L16_1 = {}
L16_1.config_id = 12020
L16_1.monster_id = 22010201
L17_1 = {}
L17_1.x = -3.43
L17_1.y = 0.028
L17_1.z = 9.721
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 165.208
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L17_1 = {}
L17_1.config_id = 12021
L17_1.monster_id = 21020301
L18_1 = {}
L18_1.x = 0.127
L18_1.y = 0.028
L18_1.z = 8.04
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 181.797
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L18_1 = {}
L18_1.config_id = 12022
L18_1.monster_id = 21010902
L19_1 = {}
L19_1.x = -2.059
L19_1.y = 0.028
L19_1.z = -11.283
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 11.336
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L19_1 = {}
L19_1.config_id = 12023
L19_1.monster_id = 21011002
L20_1 = {}
L20_1.x = 2.794
L20_1.y = 0.028
L20_1.z = -11.329
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 0.0
L20_1.y = 344.815
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L20_1 = {}
L20_1.config_id = 12024
L20_1.monster_id = 21010701
L21_1 = {}
L21_1.x = 6.021
L21_1.y = 0.028
L21_1.z = 5.351
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 222.896
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 1
L21_1 = {}
L21_1.config_id = 12025
L21_1.monster_id = 21010701
L22_1 = {}
L22_1.x = -6.758
L22_1.y = 0.028
L22_1.z = 5.263
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 130.345
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L22_1 = {}
L22_1.config_id = 12026
L22_1.monster_id = 21010603
L23_1 = {}
L23_1.x = 9.635
L23_1.y = 0.028
L23_1.z = 0.882
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 0.0
L23_1.y = 267.757
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L23_1 = {}
L23_1.config_id = 12027
L23_1.monster_id = 21010603
L24_1 = {}
L24_1.x = 7.17
L24_1.y = 0.028
L24_1.z = -4.614
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 0.0
L24_1.y = 306.018
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L24_1 = {}
L24_1.config_id = 12028
L24_1.monster_id = 21011201
L25_1 = {}
L25_1.x = 2.63
L25_1.y = 0.028
L25_1.z = -8.468
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 0.0
L25_1.y = 0.0
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L25_1 = {}
L25_1.config_id = 12029
L25_1.monster_id = 21011201
L26_1 = {}
L26_1.x = -2.304
L26_1.y = 0.028
L26_1.z = -8.509
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 0.0
L26_1.y = 0.0
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L26_1 = {}
L26_1.config_id = 12030
L26_1.monster_id = 21020201
L27_1 = {}
L27_1.x = -6.495
L27_1.y = 0.028
L27_1.z = -5.569
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 59.73
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 1
L27_1 = {}
L27_1.config_id = 12031
L27_1.monster_id = 21020202
L28_1 = {}
L28_1.x = -8.564
L28_1.y = 0.028
L28_1.z = 0.643
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 0.0
L28_1.y = 87.436
L28_1.z = 0.0
L27_1.rot = L28_1
L27_1.level = 1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
L1_1[13] = L14_1
L1_1[14] = L15_1
L1_1[15] = L16_1
L1_1[16] = L17_1
L1_1[17] = L18_1
L1_1[18] = L19_1
L1_1[19] = L20_1
L1_1[20] = L21_1
L1_1[21] = L22_1
L1_1[22] = L23_1
L1_1[23] = L24_1
L1_1[24] = L25_1
L1_1[25] = L26_1
L1_1[26] = L27_1
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 12008
L2_1.gadget_id = 70900205
L3_1 = {}
L3_1.x = 6.4
L3_1.y = -1.256
L3_1.z = 3.243
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 0.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L1_1[1] = L2_1
gadgets = L1_1
L1_1 = {}
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1012010
L2_1.name = "ANY_MONSTER_DIE_12010"
L3_1 = EventType
L3_1 = L3_1.EVENT_ANY_MONSTER_DIE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_ANY_MONSTER_DIE_12010"
L2_1.action = "action_EVENT_ANY_MONSTER_DIE_12010"
L3_1 = {}
L3_1.config_id = 1012015
L3_1.name = "ANY_MONSTER_LIVE_12015"
L4_1 = EventType
L4_1 = L4_1.EVENT_ANY_MONSTER_LIVE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = ""
L3_1.action = "action_EVENT_ANY_MONSTER_LIVE_12015"
L4_1 = {}
L4_1.config_id = 1012016
L4_1.name = "CHALLENGE_FAIL_12016"
L5_1 = EventType
L5_1 = L5_1.EVENT_CHALLENGE_FAIL
L4_1.event = L5_1
L4_1.source = "1"
L4_1.condition = ""
L4_1.action = "action_EVENT_CHALLENGE_FAIL_12016"
L5_1 = {}
L5_1.config_id = 1012017
L5_1.name = "CHALLENGE_SUCCESS_12017"
L6_1 = EventType
L6_1 = L6_1.EVENT_CHALLENGE_SUCCESS
L5_1.event = L6_1
L5_1.source = "1"
L5_1.condition = ""
L5_1.action = "action_EVENT_CHALLENGE_SUCCESS_12017"
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
triggers = L1_1
L1_1 = {}
L2_1 = {}
L2_1.configId = 1
L2_1.name = "monster_wave"
L2_1.value = 0
L2_1.no_refresh = false
L1_1[1] = L2_1
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 12008
L3_1[1] = L4_1
L2_1.gadgets = L3_1
L3_1 = {}
L2_1.regions = L3_1
L3_1 = {}
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 12008
L4_1[1] = L5_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "ANY_MONSTER_LIVE_12015"
L6_1 = "CHALLENGE_FAIL_12016"
L7_1 = "CHALLENGE_SUCCESS_12017"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 12008
L5_1[1] = L6_1
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "CHALLENGE_FAIL_12016"
L7_1 = "CHALLENGE_SUCCESS_12017"
L5_1[1] = L6_1
L5_1[2] = L7_1
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.GetGroupMonsterCountByGroupId
  L3_2 = A0_2
  L4_2 = 234402012
  L2_2 = L2_2(L3_2, L4_2)
  if L2_2 ~= 0 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_ANY_MONSTER_DIE_12010 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AddExtraGroupSuite
  L3_2 = A0_2
  L4_2 = 234402012
  L5_2 = 3
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = 0
  return L2_2
end
action_EVENT_ANY_MONSTER_DIE_12010 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
  L2_2 = ScriptLib
  L2_2 = L2_2.ActiveChallenge
  L3_2 = A0_2
  L4_2 = 1
  L5_2 = 197
  L6_2 = 600
  L7_2 = 234402012
  L8_2 = 26
  L9_2 = 0
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : active_challenge"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_ANY_MONSTER_LIVE_12015 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2
  L2_2 = ScriptLib
  L2_2 = L2_2.RefreshGroup
  L3_2 = A0_2
  L4_2 = {}
  L4_2.group_id = 234402012
  L4_2.suite = 1
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.CauseDungeonFail
  L3_2 = A0_2
  L2_2 = L2_2(L3_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : cause_dungeonfail"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_FAIL_12016 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupVariableValueByGroup
  L3_2 = A0_2
  L4_2 = "TPL_TIME"
  L5_2 = A1_2.param2
  L6_2 = 234402010
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : save_challenge_remainTime"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupVariableValueByGroup
  L3_2 = A0_2
  L4_2 = "stage"
  L5_2 = 1
  L6_2 = 234402010
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_groupVariable_by_group"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.TowerMirrorTeamSetUp
  L3_2 = A0_2
  L4_2 = 2
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : tower_team_setup"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 234402011
  L5_2 = 11001
  L6_2 = GadgetState
  L6_2 = L6_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetWorktopOptionsByGroupId
  L3_2 = A0_2
  L4_2 = 234402011
  L5_2 = 11001
  L6_2 = {}
  L7_2 = 176
  L6_2[1] = L7_2
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_wok_options_by_configid"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 234402013
  L5_2 = 13001
  L6_2 = GadgetState
  L6_2 = L6_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 234402013
  L5_2 = 13002
  L6_2 = GadgetState
  L6_2 = L6_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetIsAllowUseSkill
  L3_2 = A0_2
  L4_2 = 0
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : tower_allow_use_skill"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 234402001
  L5_2 = 1003
  L6_2 = GadgetState
  L6_2 = L6_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_12017 = L1_1
